import unittest


class Demo(unittest.TestCase):

    def setUp(self):
        print("初始构建环境函数")

    @classmethod
    def setUpClass(cls):
        print("类初始构建环境函数")

    def testFun(self):
        print("单元测试函数执行")
        self.assertTrue(True)

    def testFun2(self):
        print("单元测试函数2执行")
        self.assertTrue(True)

    def tearDown(self):
        print("还原测试环境")

    @classmethod
    def tearDownClass(cls):
        print("类还原环境函数")